/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package matris.vue;

import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import javax.swing.JFrame;
import static javax.swing.JFrame.EXIT_ON_CLOSE;

/**
 *
 * @author YOUCEF
 */
public class MyJFrame extends JFrame{
    
    
    
    public MyJFrame(){
        this.setVisible(true);
        this.setResizable(false);
        this.setDefaultCloseOperation(EXIT_ON_CLOSE);
        
        GraphicsDevice divice = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
        
        if (divice.isFullScreenSupported()) {
            divice.setFullScreenWindow(this);
        }else{
            System.out.println("le mode plein écran n'est pas dispo");
        }
    }
}
